/*
 * Document.h
 *
 *  Created on: 2012-9-20
 *      Author: yangentao@gmail.com
 */

#ifndef DOCUMENT_H_
#define DOCUMENT_H_

#include "Style.h"
#include "TextBuffer.h"

class Document {
private:
	TextBuffer textBuffer;
public:
	Document();
	virtual ~Document();

public:
	void setText(String text);
	String getText();
	String getLineText(int line);
	int getLineCount();
	void clearUndoHistory();
};

#endif /* DOCUMENT_H_ */
